﻿using DoNet.Common.Pages;
using System.Runtime.Serialization;

namespace DoNet.Core.Dtos
{
    /// <summary>
    /// 查询条件公共实体类
    /// </summary>
    [Serializable]
    [DataContract]
    public class SearchInputDto<T> : PagerInfo
    {
        /// <summary>
        /// 关键词
        /// </summary>
        public string Keywords { get; set; } = string.Empty;
        /// <summary>
        /// 编码/代码
        /// </summary>
        public string EnCode { get; set; } = string.Empty;
        /// <summary>
        /// 排序方式 默认asc 
        /// </summary>
        public string Order { get; set; } = string.Empty;
        /// <summary>
        /// 排序字段 默认Id
        /// </summary>
        public string Sort { get; set; } = string.Empty;
        /// <summary>
        /// 查询条件
        /// </summary>
        public T? Filter { get; set; }
    }
}
